/*
 * @Author: EuniceShaw
 * @Date: 2022-03-06 19:45:07
 * @LastEditors: EuniceShaw
 * @LastEditTime: 2022-03-06 19:45:08
 * @Description: 工具
 *
 */
// 判断路径是不是带协议的外链
export const isExternal = (path: string): boolean => {
  return /^(https?:|mailto:|tel:)/.test(path)
}